package com.xiangyi.teachingsystem.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Logging {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @NotNull(message = "用户userId不能为空")
    private Integer userId;
    @NotNull(message = "log信息不能为空")
    private String log;
    @NotNull(message = "gmtCreate日志时间不能为空")
    private Timestamp gmtCreate;
}
